package com.mryin.performance.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mryin.performance.pojo.Task;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author MRYIN
 * @since 2021-03-02
 */
public interface TaskService extends IService<Task> {
    List<Task> getAllFinishTask(String name);
    List<Task> getAllNormalFinishTask(String name);
    List<Task> getAllUnFinishTask(String name);
    List<Task> getAllWaitFinishTask(String name);
    List<Task> getAllOverTimeFinishTask(String name);
    Double getAllFinishTaskMonovalent(String name );
    int getRankingByNameOnMonovalent(String name);
    int getRankingByNameOnMarketPrice(String name);
    int getActualWorkDay();
    Task getTaskById(String id);
    String inputExcel(MultipartFile file , HttpServletRequest request , HttpServletResponse response );
    int addTaskByReadExcel(Task task);
}
